package com.yuehuanghun.admin.core.config.filler;

import com.yuehuanghun.admin.core.config.util.UserUtils;
import com.yuehuanghun.mybatis.milu.filler.AttributeValueSupplier;

public class CurrentUserNameSupplier implements AttributeValueSupplier<String> {

	@Override
	public String getValueOnInsert(Class<?> clazz) {
		return UserUtils.getCurrentUserName();
	}

	@Override
	public String getValueOnUpdate(Class<?> clazz) {
		return null;
	}

	@Override
	public boolean support(Class<?> clazz) {
		return true;
	}

}
